home *** CD-ROM | disk | FTP | other *** search
- global theOpenDialog, theScrollBar, toonDataFileList, openDialogBox
-
- on startMovie
- set the modal of openDialogBox to 1
- set the exitLock to 1
- set theOpenDialog to birth(script "openDialogBox parent")
- set theScrollBar to birth(script "scrollbar parent")
- init(theOpenDialog)
- end
-
- on hiliteButton whichSprite
- set hilit to 1
- set theCastNum to the castNum of sprite whichSprite
- set the castNum of sprite whichSprite to theCastNum + 1
- updateStage()
- repeat while the mouseDown
- if rollOver(whichSprite) then
- set the castNum of sprite whichSprite to theCastNum + 1
- set hilit to 1
- else
- set the castNum of sprite whichSprite to theCastNum
- set hilit to 0
- end if
- updateStage()
- end repeat
- set the castNum of sprite whichSprite to theCastNum
- updateStage()
- if hilit then
- return 1
- else
- return 0
- end if
- end
-
- on puppetSprites START, finish, state
- repeat with theSprite = START to finish
- puppetSprite(theSprite, state)
- end repeat
- end
-